import { GET_CITY_APP, GET_WEATHER_APP, IP_APP } from "@/config/url.conf";
import { ajax2 } from "@/utils/request";



/**
 * 获取本机ip和地址
 * @returns 
 */
export const ipApi = () => {
    return ajax2({
      params:{key:'HBOBZ-O2HK3-3G63Z-3ZBXD-PYJIZ-YXBNP'},
      url: IP_APP,
    });
  };
  /**
   * 通过城市名获取天气信息
   */
  GET_WEATHER_APP
  export const weatherApi = (city) => {
    return ajax2({
      url: GET_WEATHER_APP,
      params:{
        city
      }
    });
  };